package com.kim.androidbase.db;

import java.io.Serializable;
import java.util.Arrays;

import android.content.ContentValues;

public class SQLiteCriteria implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -487557081706519095L;

	private String tableName;

	private String selection;
	private String[] selectionArgs;

	private String whereClause;
	private String[] whereArgs;

	private String[] columns;

	private String groupBy;
	private String orderBy;

	private ContentValues contentValues;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getSelection() {
		return selection;
	}

	public void setSelection(String selection) {
		this.selection = selection;
	}

	public String[] getSelectionArgs() {
		return selectionArgs;
	}

	public void setSelectionArgs(String[] selectionArgs) {
		this.selectionArgs = selectionArgs;
	}

	public String getWhereClause() {
		return whereClause;
	}

	public void setWhereClause(String whereClause) {
		this.whereClause = whereClause;
	}

	public String[] getWhereArgs() {
		return whereArgs;
	}

	public void setWhereArgs(String[] whereArgs) {
		this.whereArgs = whereArgs;
	}

	public String[] getColumns() {
		return columns;
	}

	public void setColumns(String[] columns) {
		this.columns = columns;
	}

	public String getGroupBy() {
		return groupBy;
	}

	public void setGroupBy(String groupBy) {
		this.groupBy = groupBy;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

	public ContentValues getContentValues() {
		return contentValues;
	}

	public void setContentValues(ContentValues contentValues) {
		this.contentValues = contentValues;
	}

	@Override
	public String toString() {
		return "SQLiteCriteria [selection=" + selection + ", selectionArgs="
				+ Arrays.toString(selectionArgs) + ", whereClause="
				+ whereClause + ", whereArgs=" + Arrays.toString(whereArgs)
				+ ", columns=" + Arrays.toString(columns) + ", groupBy="
				+ groupBy + ", orderBy=" + orderBy + ", contentValues="
				+ contentValues + "]";
	}

}